﻿<!DOCType html>
<html>
    <head>
        <meta charset="utf-8">
        <title>eduwork</title>
        <meta name="Keywords" content="以太币" />
        <meta name="Description" content="以太币" />

        <!--[if lt IE 9]>
          <script src="style/js/html5shiv.js" type="text/javascript"></script>
        <![endif]-->

		<link rel="alternate icon" type="image/png" href="static/img/favicon.png">
        <link href="__PLUGINS__/style/css/member.css" rel="stylesheet" type="text/css" />
        <link href="__PLUGINS__/style/css/common.css" rel="stylesheet" type="text/css" />
        <link href="__PLUGINS__/style/css/login.css" rel="stylesheet" type="text/css" />
        <!-- <link href="style/css/login01.css" rel="stylesheet" type="text/css" /> -->
        <link href="__PLUGINS__/style/css/yangcong.css" rel="stylesheet" type="text/css" />
        <!-- <link href="http://www.xinnet.com/views/privilegeRegister/javascript/Z-UI/skin/hyzx/hyzx.css"
                type="text/css" rel="stylesheet" />  -->

        <script type="text/javascript">

            //定义ctx变量，供js脚本使用
            var jsCtx = '';
            var loginId = '';


            var jsEmail = '';

            var errorMsg = "";
        </script>

        <script type="text/javascript" src="__PLUGINS__/style/js/jquery.js"></script>
        <script type="text/javascript" src="__JS__/browserKernel.js"></script>

        <style type="text/css">
            .input-focus{color: #333;border-color: #fdbaba;font-size: 14px;}
            .input-finish{color: #333;border-color: #ccc;}
            #error4 {
                position: absolute;
                left: 70px;
                whide: 250px;
                top: 85px;
            }

            #oldUserNameError {
                position: absolute;
                left: 415px;
                top: 175px;
                whide: 150px;
            }

            #oldUserEmailError {
                position: absolute;
                left: 415px;
                top: 230px;
                whide: 150px;
            }

            #oldUserPwdError {
                position: absolute;
                left: 415px;
                top: 285px;
                whide: 150px;
            }

            #oldUserRandError {
                position: absolute;
                left: 163px;
                top: 312px;
                whide: 150px;
            }
        </style>

    </head>
    <body id="cas">
        <div id="container">

            <div id="content">

                <script type="text/javascript">
            var hasError = "";//临时变量，存储错误信息；
            var verification = ""; //临时变量，标记是否开启动态口令
                </script>


                <div class="header-bg">
                    <div class="header">
                        <a class="logo" href="/home" style="background-image: url('__WK__/style/images/logo123456.png');background-size: auto 30px"></a> <span class="red-line"></span> <span class="wel">登陆</span>
                    </div>
                </div>

                <div class="main-bg">
                    <div class="main">
                        <!--<a href="http://www.Eduwork.cc" target="_blank" class="main-left">-->
                            <!--<img src="__PLUGINS__/style/images/abc.jpg">-->
                        <!--</a>-->
                        <div class="right" style="width: 500px;text-align: center">
                            <form   method="post">
                                <input type="hidden" name="lt" value="LT-890168-XSSXIRLns4vQJzfvDkHQqBMpr5XIHW" />
                                <input type="hidden" name="execution" value="e1s1" />
                                <input type="hidden" name="_eventId" value="submit" />
                                <div class="con-01">
                                    <span class="title title111" style="line-height:60px;cursor:pointer;font-size: 15px; color: #666; padding: 18px 0 0 29px;">账号密码登录</span>
                                    <span class="title title222" style="line-height:60px;cursor:pointer;font-size: 15px; color: #666; padding: 18px 0 0 29px;">手机登录</span>
                                </div>
                                <div class="con-02" id="loginModal" >
                                    <input class="input-common account" id="loginUserName" name="username" type="text" placeholder="请输入账号" /><!-- onFocus="hidenErrorTip();" onBlur="checkUserName()" -->
                                    <div class="div-01" >
                                        <input type="hidden" id="state" value="" />
                                        <input type="hidden" id="errortime" value="" />
                                        <input class="input-common password" type="password" id="loginPassWord" name="password" placeholder="请输入密码"  />
                                        <div class="remind" id="remind" >
                                            <div style="height:15px;"></div>
                                            <span class="common-error" id="errorTipMsg" style="color: red; font-size: 11px;display:none; "><i class="icon"></i>密码或者账户错误，请重新输入!</span>
                                        </div>
                                        <div class="remind" id="nulln" style="display:none;">
                                            <div style="height:15px;"></div>
                                            <span class="common-error" id="nullname" style="color: red; font-size: 11px; "><i class="icon"></i>账户未填写!</span>
                                        </div>
                                        <div class="remind" id="nullp" style="display:none;">
                                            <div style="height:15px;"></div>
                                            <span class="common-error" id="nullpass" style="color: red; font-size: 11px; "><i class="icon"></i>密码未填写!</span>
                                        </div>
                                    </div>
                                    <div class="div-01">
                                        <a class="btn-common" id="loginButton" href="javascript:void(0);" onclick="loginSubmit();">
                                            登录
                                        </a>
                                    </div>
                                </div>
                                <div class="con-02" id="loginModal2" style="display: none;text-align: left">
                                    <div class="div-01" style="border-bottom: 1px solid red;width: 80%;">
                                        手机号：<input style="height: 30px;border:none;" placeholder="请输入您的手机号" type="text" name="wk_phone" id="wk_phone" /><a href="JavaScript:;" style="color: white;">输入手机号</a>
                                    </div>
                                    <div class="div-01" style="border-bottom: 1px solid red;width: 80%;">
                                        验证码：<input style="height: 30px;border:none;" placeholder="输入验证码" type="text" name="wk_code" id="wk_code" />
                                        <a id="yzm" class="go" href="JavaScript:;" style="color: #EDBB3B;">发送验证码</a>
                                    </div>
                                    <div class="div-01">
                                        <a class="btn-common" style="width: 80%;" id="loginButton2" href="javascript:void(0);">
                                            登录
                                        </a>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>




            </div> <!-- END #content -->

            <!--footer begin -->
            <div class="footer">
                <p class="footer-p">
                    <a href="http://www.Eduwork.cc" target="_blank">联系电话：徐经理 13236520598</a><span>|</span>
                    <a href="http://www.Eduwork.cc" target="_blank">合作邮箱：xudengke@apipaas.com</a><span></span>
                    <!--<a href="http://www.Eduwork.cc" target="_blank">资质荣誉</a><span>|</span>-->
                    <!--<a href="http://www.Eduwork.cc" target="_blank">网站地图</a><span>|</span>-->
                    <!--<a href="http://www.Eduwork.cc" target="_blank">友情链接</a><span>|</span>-->
                    <!--<a href="http://www.Eduwork.cc" target="_blank">联系我们</a>-->
                </p>
                <p class="footer-bq">

                    Copyright©2017-2018
                    艾帕斯矿吧 版权所有
                </p>
            </div>
            <!--footer end -->


        </div>
        <script type="text/javascript" src="__PLUGINS__/jquery/jquery.min.js"></script>
        <script type="text/javascript" src="__PLUGINS__/bootstrap/bootstrap.min.js"></script>
        <script src="__PLUGINS__/nprogress/nprogress.min.js"></script>
        <script type="text/javascript" src="__PLUGINS__/bootstrap-switch/bootstrap-switch.min.js"></script>
        <script type="text/javascript" src="__JS__/TeachDialog.js"></script>
        <script type="text/javascript" src="__JS__/index.js"></script>
    </body>
</html>
<script>
    $('.title111').css('color','red');
    $('.title').click(function () {
        $(this).css('color','red').siblings().css('color','#666');
    });
    $('.title111').click(function () {
        $('#loginModal').css('display','block');
        $('#loginModal2').css('display','none');
    });
    $('.title222').click(function () {
        $('#loginModal').css('display','none');
        $('#loginModal2').css('display','block');
    });

    var intv;
    $('#yzm').click(function () {
        var phone = $('#wk_phone').val().trim();
        var rule = /^1(3|4|5|7|8)\d{9}$/;
        if(!(rule.test(phone))){
            alert("手机号码有误，请重填");
        }else{
            if($(this).hasClass('go')){
                $('#yzm').css({'color':'#ccc'});
                $('#yzm').text('59秒后重发');
                $('#yzm').removeClass('go');
                intv = setInterval("timego()",1000);
                $.ajax({
                    url:'admin/Admin/getLoginPhoneCode',
                    data:'phone='+phone,
                    type:'POST',
                    dataType:'JSON',
                    success:function(returndata){
                        if (returndata.status != 200) {
                            $.TeachDialog({
                                content: returndata.msg
                            });
                        }
                    },
                    error: function () {
                        $.TeachDialog({
                            content: '系统异常，请联系管理员'
                        });
                    }
                });
            }else{
                return;
            }
        }

    });
    function timego() {
        var m = parseInt($('#yzm').text());
        var nm = m-1;
        if(nm > 0){
            $('#yzm').text(nm+'秒后重发');
        }else{
            $('#yzm').css({'color':'#EDBB3B'});
            $('#yzm').text('获取验证码');
            $('#yzm').addClass('go');
            clearInterval(intv);
            return;
        }

    }

    $('#loginButton2').click(function() {
        var phone = $('#wk_phone').val().trim();
        var code = $('#wk_code').val().trim();
        if(phone == "" || code == ""){
            alert('不能为空！');
        }else{
            $.ajax({
                url: "admin/Admin/authLogin2",
                type: 'POST',
                dataType: 'JSON',
                data: {
                    phone: phone,
                    code: code,
                },
                success: function(data) {
                    if (data.status == 200) {
                        location.href = "";
                        return;
                    } else {
                        alert(data.msg);
                    }
                },
            });
        }
    });
</script>
